﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AtletIS.Shared.Entities;

namespace AtletIS.Shared.Forms
{
    public partial class frmWpf : Form
    {
        public frmWpf(string appCode, DisciplineListEntity discipline)
        {
            InitializeComponent();

            this.Icon = Properties.Resources.AtletIS64;
            switch (appCode)
            { 
                case "ChipViewer":
                    WpfControls.ChipViewer myChipViewer = new WpfControls.ChipViewer(discipline);
                    ehWpf.Child = (System.Windows.UIElement)myChipViewer;
                    break;

                case "StartList":
                    WpfControls.StartList myStartList = new WpfControls.StartList(discipline);
                    ehWpf.Child = (System.Windows.UIElement)myStartList;
                    break;

                case "Results":
                    WpfControls.Results myResults = new WpfControls.Results(discipline);
                    ehWpf.Child = (System.Windows.UIElement)myResults;
                    break;

                case "Press":
                    WpfControls.PressControl myPress = new WpfControls.PressControl();
                    ehWpf.Child = (System.Windows.UIElement)myPress;
                    break;
                
            }

            
        }
               
    }
}
